import request from '@/utils/request'

export function getCouponHistory(id) {
  return request({
    url: `/coupon/couponHistory/getById/${id}`,
    method: 'post'
  })
}

export function couponHistoryList(params) {
  return request({
    url: '/coupon/couponHistory/find',
    method: 'post',
    params
  })
}

export function deleteCouponHistory(ids) {
  return request({
    url: '/coupon/couponHistory/delete',
    method: 'post',
    data: ids
  })
}
